package com.geely.model;

import java.util.List;

import com.jfinal.plugin.activerecord.Model;

public class Adm extends Model<Adm>
{
	public static final Adm dao = new Adm();
	
    public Adm getAdm(String username,String password) 
    {
    	
    	return findFirst("select * from adm where username=? and password=?",username,password);
    }
    
    public Adm getUserDetailById(int id){
    	Adm  one= findFirst("SELECT user.id,user.username,user.password,user.department,user.tel,user.email from user where user.id=?",id);
    	return one;
    }
}
